package com.zlfund.cat.zjgsmk.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * @author chenj
 * @date 2017/9/24
 * @use ${}
 */

public class DateUtil {

    private static ThreadLocal<DateFormat> local = new ThreadLocal<DateFormat>(){
        @Override
        protected DateFormat initialValue() {
            return new SimpleDateFormat("yyyy年MM月dd日", new Locale("zh","CN"));
        }
    };

    public static String parseDate(Date date){
        return local.get().format(date);
    }

}
